﻿create PROCEDURE Sync.SP_Centers_SelectChanges
@LastRowVersion rowversion,
@FilterdColumn UNIQUEIDENTIFIER
AS 
BEGIN 
	SELECT 
        t.[CenterID],
		g.[CenterName],g.[GovernorateID],
		t.IsDeleted,
		t.LastUpdatedDate
	FROM [dbo].[Centers] g RIGHT JOIN Sync.Centers_Tracking t  
    ON t.CenterID = g.CenterID 
	WHERE @LastRowVersion IS NULL OR t.Version > @LastRowVersion
    END














